package com.east.controller;

import com.east.manager.StatisticManager;
import com.east.result.Result;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/statistic/")
public class StatisticController {
    @Resource
    private StatisticManager statisticManager;

    @GetMapping("/statisticData")
    public Result getStatisticalData() {
        return statisticManager.getStatisticalData();
    }
    @GetMapping("/saleFunnelData")
    public Result getSaleFunnelData() {
        return statisticManager.getSaleFunnelData();
    }
    @GetMapping("/cluePieData")
    public Result getCluePieData(){
        return statisticManager.getCluePieData();
    }
}
